﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CheckLift.Common.Intf;
using System.Data.Linq;

namespace CheckLift.Linq
{
    public partial class Customer : ICustomer
    {
        #region ICustomer Members

        IAddress ICustomer.Address
        {
            get { return (IAddress)Address; }
        }

        ICompany ICustomer.Company
        {
            get {return (ICompany)Company; }
        }

        EntitySet<ILift> ICustomer.Lifts
        {
            get 
            {
                EntitySet<ILift> entitySetRes = new EntitySet<ILift>();
                foreach (Lift item in Lifts)
                {
                    entitySetRes.Add((ILift)item);
                }
                return entitySetRes; 
            }
        }

        #endregion
    }
}
